package com.open.capacity.common.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
    * 考题表
    */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "exam_questions")
public class ExamQuestions implements Serializable {
    /**
     * 问题id
     */
    @TableId(value = "quesid", type = IdType.AUTO)
    private Integer quesid;

    /**
     * 问题标题
     */
    @TableField(value = "qtitle")
    private String qtitle;

    /**
     * 选择题选项表的选项id
     */
    @TableField(value = "qoptid")
    private Integer qoptid;

    /**
     * 答案
     */
    @TableField(value = "answer")
    private String answer;

    /**
     * 问题类型:关联exam_questions_type表
     */
    @TableField(value = "typeid")
    private Integer typeid;

    /**
     * 创建时间
     */
    @TableField(value = "cretim")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date cretim;

    /**
     * 更新时间
     */
    @TableField(value = "updtim")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date updtim;

    /**
     * 状态：1=使用,2=禁用
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 科目id
     */
    @TableField(value = "subjid")
    private Integer subjid;
    /**
     * 答案备注
     */
    @TableField(value = "notes")
    private String notes;
    /**
     * 阶段
     */
    @TableField(value = "stage")
    private String stage;
}